package com.jeomo.mem.starter.service;

import com.jeomo.base.starter.service.IBaseService;
import com.jeomo.mem.starter.dto.MemberSuppleDto;
import com.jeomo.mem.starter.entity.MemberPointsSuppleDetail;
import com.jeomo.mem.starter.entity.MemberPointsSupplement;

import java.util.Date;
import java.util.List;

/**
 * 会员积分补录
 *
 * @author:Jackpot
 * @create 2020-10-13 20:41
 * @description:
 */
public interface IMemPointsSupplementService extends IBaseService<MemberPointsSupplement> {

    /**
     * 分页查询积分补录列表
     * @return
     */
//    List<MemberPointsSupplement> getSuppleByPage(long pageNumber, long pageSize, Map<String, Object> searchParams);


    /**
     * 查询商品消费信息
     *
     * @param date      消费时间
     * @param levelCode
     * @param merchant
     * @param amount
     * @return
     */
    List<MemberPointsSuppleDetail> queryGoodsConsumerInfo(Date date, String levelCode, String merchant, double amount);

    /**
     * 查询一条积分补录信息
     *
     * @param code
     * @return
     */
    MemberSuppleDto getMemberPointSupple(String code);

    /**
     * 修改工作流状态
     *
     * @param code
     * @param auditor 审批人
     * @param status  状态
     * @return
     */
    int updateWorkflowStatus(String code, String auditor, int status);

    /**
     * @description: 获取待处理拍照积分条数
     * @return: int
     * @author: 崔贺
     * @time: 2020/12/22 11:49
     */
    int queryToDoPhotographIntegral();
}
